package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 预约表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("reservation")
@ApiModel(value = "Reservation对象", description = "预约表")
public class Reservation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("商品id")
    @TableField("content_id")
    private Long contentId;

    @ApiModelProperty("名称")
    @TableField("content_title")
    private String contentTitle;

    @ApiModelProperty("折扣")
    @TableField("content_discount")
    private BigDecimal contentDiscount;

    @ApiModelProperty("图片地址")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty("预约店铺id")
    @TableField("store_id")
    private Long storeId;

    @ApiModelProperty("预约店铺")
    @TableField("store_name")
    private String storeName;

    @ApiModelProperty("预约编号")
    @TableField("pre_no")
    private String preNo;

    @ApiModelProperty("预约人")
    @TableField("pre_name")
    private String preName;

    @ApiModelProperty("联系电话")
    @TableField("pre_phone")
    private String prePhone;

    @ApiModelProperty("预约地址")
    @TableField("pre_address")
    private String preAddress;

    @ApiModelProperty("商品数量")
    @TableField("pre_num")
    private Integer preNum;

    @ApiModelProperty("总价")
    @TableField("total_price")
    private BigDecimal totalPrice;

    @ApiModelProperty("预约状态，0=预约成功，1=预约过期，2取消预约")
    @TableField("pre_state")
    private Boolean preState;

    @ApiModelProperty("预约时间")
    @TableField("pre_time")
    private LocalDateTime preTime;

    @ApiModelProperty("是否启用，1表示启用，0表示禁用")
    @TableField("enabled")
    private Boolean enabled;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
